<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>奖品列表</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="http://g.tbcdn.cn/??kissy/k/1.3.2/kissy-min.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.21/adapter.js"></script>
<script src="/assets/shopmanage/event_step3.js"></script>
<script src="/assets/shopmanage/main.js"></script> 
	<style>
	h1 button,h2 button,h3 button,h4 button,.title button,.gift_hqfs button,.title a{ldelim}position:absolute{rdelim}
	a.js-edit {ldelim}margin-left:5px{rdelim}
	</style>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">
<input type="hidden" class="curtool" value="{$curtool}" />
<input type="hidden" class="setting" value="{$tool_info.templet_code|default:""}" />
<input type="hidden" class="setting_pic" value="{$tool_info.pic_url|default:""}" />
 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
		  <div class="row">
			<div class="span24 doc-content">
			<h3 class="pull-left">我的互动 >> 抽奖活动 >> 日常活动奖品</h3>
			<!-- <a class="button pull-right" style="margin-left:10px" href="/?m=Kxdr&c=Index&a=show_tools"><i class="icon-home"></i>{$L.SYS_RETURN}</a> -->
				
			<div class="button-group pull-right">
			  <a class="button button-success " href="/?c=gifts&m=Shopmanage"><i class="icon icon-home icon-white"></i>返回</a>
			</div>
			</div>
		  </div>
		
      </div>
    </div>
		  
		<div class="grid hide">
				<input type="file" class="g-u file-input" id="J_UploaderBtn" value="上传文件" name="Filedata" >
				<input type="hidden" id="J_Urls" class="J_Urls" name="urls" value="" />
		</div>
		<div class="panel">
		  <div class="panel-header clearfix">
			<h3 class="pull-left">添加奖品</h3>
			<div id="tbar" class="pull-right"></div>
		  </div>
		  {include file='../../../PublicView/showmessage.html'}
		<div class="panel-body clearfix ">
					<div class="row hide gift-add">
						<span class="x-icon x-icon-small x-icon-error" style="position:absolute;"><i class="icon icon-white icon-remove"></i></span>
						{include file="./gift_table.html" tools=$tools}
					</div>
					<form method="post" action="/?a=save&m=Shopmanage&c=gifts">
					<input type="hidden" class="tnm" name="toolname" value="{$toolname}">
					<div class="form-horizontal">
					<ul id="J_UploaderQueue" style="position:absolute;right:0;bottom:0"></ul>
						{if !$gifts && $edit_gifts}
							本活动没有任何奖品，请直接添加！
						{/if}
						{if !$gifts && !$edit_gifts}
							<div class="row gift-add">
							{include file="./gift_table.html" tools=$tools}
							</div>
						{else}
							{assign var="i" value=0}
							{foreach from=$gifts key=key item=item}
								<div class="row g{$key} gift-add">
								<input type="hidden" value="{$item.id}" name="id[]" />
								{if $i>0}<span class="x-icon x-icon-small x-icon-error" data-gid="g{$key}" style="position:absolute;"><i class="icon icon-white icon-remove"></i></span>{/if}
								 {include file="./gift_table.html" item=$item key=$key}
								</div>
								{assign var="i" value=1}
							{/foreach}
						{/if}
					</div>
					{if $edit_gifts!="single"}
						{if $edit_gifts}
						<div class="row toolbar pull-left">
						<span class="auxiliary-text">小提示：只要刷新页面即可找回已保存的奖品。</span>
						</div>
						{/if}
					<div class="row toolbar pull-right">
					<!-- <button class="button button-mini button-danger" type="button"><i class="icon icon-white icon-minus"></i>删除</button> -->
					<button class="button button-mini button-success" type="button"><i class="icon icon-white icon-plus"></i>增加</button>
					<!-- <span class="x-icon x-icon-small x-icon-error"><i class="icon icon-white icon-minus"></i></span> 
					<span class="x-icon x-icon-small x-icon-success"><i class="icon icon-white icon-plus"></i></span>  -->
					</div>
					{/if}
					{if !$edit_gifts}
					<!-- <div class="control-group span20 centered res">
					<div class="button pre_step" >上一步</div>
					<button class="button save" type="submmit" >下一步</button>
					</div> -->
					{else}
					<!-- <div class="control-group span20 centered res">
					<button class="button save" type="submmit" >完成</button>
					</div> -->
					{/if}
					<div class="control-group span20 centered res">
					<button class="button save" type="submmit" >完成</button>
					</div>
					</form>
					<!--内容部分-->
				</div>
		</div>
  </div>
</body>
</html>